# 3.静态方法，要是用@staticmethod来装饰,参数任意，类对象与实例对象都可调用


class Study(object):
    def __init__(self):
        self.name = '张三'
        self.url = 'https://www.baidu.com'

    @staticmethod
    def today(date):
        print("今天是:"+date)
        print('我是静态方法!')


S = Study()
S.today('2020-1-1')
Study.today('2020-1-1')